package com.system.exam.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.system.exam.admin.entity.BusQuestionInfo;
import com.system.exam.admin.mapper.BusQuestionInfoMapper;
import com.system.exam.admin.service.BusQuestionInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Administrator
 * @description 针对表【bus_question_info(问题表)】的数据库操作Service实现
 * @createDate 2023-10-24 12:47:55
 */
@Service
public class BusQuestionInfoServiceImpl extends ServiceImpl<BusQuestionInfoMapper, BusQuestionInfo>
        implements BusQuestionInfoService {

    @Autowired
    private BusQuestionInfoMapper busQuestionInfoMapper;

    @Override
    public int updateBusQuestionInfoById(String categoryName, long categoryId) {
        return busQuestionInfoMapper.updateBusQuestionInfoById(categoryName, categoryId);
    }

    @Override
    public int deleteBusQuestionInfoById(long categoryId) {
        return busQuestionInfoMapper.deleteBusQuestionInfoById(categoryId);
    }
}




